# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-omitempty
_pkgname=omitempty
pkgdesc='Enums for Python.'
pkgver=0.1.1
pkgrel=6
arch=('any')
url='https://pypi.org/project/omitempty/'
license=('MIT')
depends=('python' 'python-babel' 'python-coverage' 'python-docutils'
         'python-jinja' 'python-markupsafe' 'python-pep8' 'python-pluggy'
         'python-pygments' 'python-pytz' 'python-six' 'python-snowballstemmer'
         'python-sphinx' 'python-tox' 'python-virtualenv')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('5ad241b572a3baad2866e7b58b14d53d6f1c068309e3a64bc57fa12f9534755948c3ea6d3bc8bd77bc3a39ad93d1f44f017f6699a125b7886011eebff3db3d57')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

